package com.xxbb.impl;

import com.xxbb.entity.JavaBean;
import com.xxbb.intface.IJavaBean;

public class Student extends JavaBean implements IJavaBean {
    public Student(){

    }
    public  Student(Integer _studentId,Integer _sex,String _name){
        JavaBean javaBean = new JavaBean();
        javaBean.setStudentId(_studentId);
        javaBean.setSex(_sex);
        javaBean.setName(_name);
    }
    public void  study(){
        System.out.println("正在学习写Java。");
    }

    @Override
    public void hobby() {
        System.out.println("写代码。");
    }

    @Override
    public void goHome() {
        System.out.println("云南省玉溪市新平彝族傣族自治县平掌乡。");
    }
}
